package cn.tedu.management.portal.dto;

import lombok.Data;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class StaffDTO implements Serializable {

    @NotNull(message = "用户名不能为空")
    @Size(min = 2,max = 8,message = "用户名必须为2~8位")
    private String username;
    @NotNull(message = "邮箱不能为空")
    private String email;
    @NotNull(message = "年龄不能为空")
    private Integer age;
    @NotNull(message = "身份证号码不能为空")
    private String idNumber; //身份证
    @NotNull(message = "性别不能为空")
    private String gender;//性别
    @NotNull(message = "婚姻状况不能为空")
    private String maritalStatus; //婚姻状况
    @NotNull(message = "学历不能为空")
    private String education;
    @NotNull(message = "手机号不能为空")
    @Size(min = 11,max = 11,message = "手机号必须为11位")
    private String phone;
    @NotNull(message = "地址不能为空")
    private String address;
    private Integer deptId;
    private Integer jobId;
}
